<html>
<head><meta charset="utf-8"><title>Equality among `TraitRef`s. · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Equality.20among.20.60TraitRef.60s.2E.html">Equality among `TraitRef`s.</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="243118025"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Equality%20among%20%60TraitRef%60s./near/243118025" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Equality.20among.20.60TraitRef.60s.2E.html#243118025">(Jun 18 2021 at 05:30)</a>:</h4>
<p>I'm hacking around <code>TraitRef</code>s for the <code>trait_upcasting</code> feature. It soon comes to me that naive comparison between <code>TraitRef</code> data with <code>==</code> doesn't work... Is there some "standard procedure" of comparing equality of two different <code>TraitRef</code>s?</p>
<p>I'm also thinking that maybe <code>PartialEq</code> should not be implemented for this type at all</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>